<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head th:replace="~{commons/public::common-public}">
  <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
  <meta name="description" content="">
  <meta name="author" content="">
</head>
<body>
<!--图标-->

<div class="container-fluid">
  <div class="row">
    <div class="col-md-2 justify-content-between cbl" th:include="~{commons/header::common-header}" style="margin:0;padding:0;">
    </div>
    <!-- 右部分 -->
    <div class="col-md-10 bg3">
      <div class="content2">
        <div class="search">
          <nav class="navbar navbar-expand-lg bg-#000000" data-bs-theme="dark">
            <div class="container-fluid">
              <a class="navbar-brand" href="#">YUEDU</a>
              <button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarSupportedContent"
                      aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
                <span class="navbar-toggler-icon"></span>
              </button>
              <div class="collapse navbar-collapse" id="navbarSupportedContent">
                <ul class="navbar-nav me-auto mb-2 mb-lg-0">
                  <li class="nav-item">
                    <a class="nav-link" href="#">答题统计</a>
                  </li>

                  <li class="nav-item dropdown">
                    <a class="nav-link dropdown-toggle" href="article-manager.html" role="button" data-bs-toggle="dropdown" aria-expanded="false">分数排名
                    </a>
                  </li>

                </ul>
                <form class="d-flex" role="search">
                  <input class="form-control me-2" type="search" placeholder="Search" aria-label="Search">
                  <button class="btn btn-outline-success" type="submit">Search</button>
                </form>
              </div>
            </div>
          </nav>
        </div>
        <!-- 主要内容 -->
        <div class="main col-md-12 justify-content-center" style=";height: 800px;background-color: rgba(212,220,196,0.5); ">
          <div class="row" style="height: 50px;"></div>
          <div class="row">
            <div class="col-md-1"></div>
            <div class="col-md-8">
              <h3 style="text-align: center;font-family: 楷体;font-size: 30px;font-weight: bolder;color:black">试题列表</h3>
              <div class="justify-content-center" style="text-align: center;margin-bottom: 30px">
                <!-- 循环显示问题列表 -->
                <th:block th:each="question : ${questions}">
                  <li style="margin-top: 20px">
                    <a th:href="@{'/questions/get2/' + ${question.questionID}}" >问题编号: <label th:text="${question.questionID}"></label></a>
                  </li>
                </th:block>
              </div>
              <div style="text-align: center;margin: auto">
              <a href="/questions/add" class="btn btn-default btn-sm manager-an two" style="text-decoration: none;">添加</a>
              </div>
            </div>
          </div>
        </div>
      </div>
    </div>
  </div>
</div>

</body>
</html>
